package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.vo.Approval.analysis.DeptApprovalVO;
import com.ruoyi.system.domain.vo.Approval.analysis.MonthApprovalVO;
import com.ruoyi.system.domain.vo.Approval.analysis.TypeApprovalVO;
import com.ruoyi.system.mapper.ApprovalAnalysisOverviewMapper;
import com.ruoyi.system.service.IApprovalAnalysisOverviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class ApprovalAnalysisOverviewImpl implements IApprovalAnalysisOverviewService {
    @Autowired
    private ApprovalAnalysisOverviewMapper approvalAnalysisOverviewMapper;
    @Override
    public int getApprovalCount(String status) {
        return approvalAnalysisOverviewMapper.getApprovalCount(status);
    }

    @Override
    public List<MonthApprovalVO> getMonthApprovalCountByYear(String year) {
        return approvalAnalysisOverviewMapper.getMonthApprovalCountByYear(year);
    }

    @Override
    public List<DeptApprovalVO> getDeptApprovalCount() {
        return approvalAnalysisOverviewMapper.getDeptApprovalCount();
    }

    @Override
    public List<TypeApprovalVO> getTypeApprovalCount() {
        return approvalAnalysisOverviewMapper.getTypeApprovalCount();
    }
}
